package com.tpyule.tpclass.entity.pojo;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @author zzz
 * @version 1.0
 * @date 2020/4/26 21:11
 */
public class Answer {
    private String answerId;
    private String userId;
    private String questionId;
    private String content;
    private int adoption;
    private int star;
    private String createTime;
    private int level;
    private String replyAnswerId;
    private String replyUserId;
    private String parentAnswerId;
    private int remove;

    public Answer() {
        this.adoption = 0;
        this.star = 0;
        this.createTime = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date());
        this.remove = 0;
    }

    public String getAnswerId() {
        return answerId;
    }

    public void setAnswerId(String answerId) {
        this.answerId = answerId;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getQuestionId() {
        return questionId;
    }

    public void setQuestionId(String questionId) {
        this.questionId = questionId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public int getAdoption() {
        return adoption;
    }

    public void setAdoption(int adoption) {
        this.adoption = adoption;
    }

    public int getStar() {
        return star;
    }

    public void setStar(int star) {
        this.star = star;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public int getLevel() {
        return level;
    }

    public void setLevel(int level) {
        this.level = level;
    }

    public String getReplyAnswerId() {
        return replyAnswerId;
    }

    public void setReplyAnswerId(String replyAnswerId) {
        this.replyAnswerId = replyAnswerId;
    }

    public String getReplyUserId() {
        return replyUserId;
    }

    public void setReplyUserId(String replyUserId) {
        this.replyUserId = replyUserId;
    }

    public String getParentAnswerId() {
        return parentAnswerId;
    }

    public void setParentAnswerId(String parentAnswerId) {
        this.parentAnswerId = parentAnswerId;
    }

    public int getRemove() {
        return remove;
    }

    public void setRemove(int remove) {
        this.remove = remove;
    }
}
